Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=temp_b
@vc=temp_c
@vd=temp_d
@end
                                        
//YCompareString
//ĿģַбȽ
//s1ҪȽϵַ֮һ
//s2ҪȽϵַ֮һ
//ؽΪ0ַȣΪs1>s2,Ϊ,s1<s2
//LastError=0ȷLastErrorΪμֲ
public int YCompareString(string s1, string s2)
{
	//̿κεطʹüճķʽδԼĴУһҪע⣬ҪʹеļܱʽһҪԼһµļܱʽ
     //칤ɵļܺļܱʽ
    //бܵıʽΪ@exp
     byte[] InArray ={ @ak100,@ak101,@ak102,@ak103,@ak104,@ak105,@ak106,@ak107,@ak108,@ak109,@ak110,@ak111,@ak112,@ak113,@ak114,@ak115};
     byte[] OutArray = new byte[16]; 
    //ܺıʽ͵ннܲ¼ܣʹӦȨţעת
    //Ȼ󷵻ؼܺݣüܺüӦ
    //ֻбӦȨŽתݲܱӦļܲ
    LastError = E_Dec_6(E_Hkey, E_Lkey, InArray, OutArray, KeyPath);
    if (LastError != 0 ) return 0;
    
	LastError = 0;
	//ֲ
	char [] temp_char;
	char [] temp_char_1;
	short temp_a=0 ;
	short temp_b=0;
	short temp_c=0;
	short temp_d=0 ;
	/////////////////////////////////////ַ1////////////////////////////////////
	//ַĳȽַǰ1ǰ2ֲַĸֽڣ
	temp_char=s1.ToCharArray();temp_char_1=s2.ToCharArray();
	if(s1.Length>0){temp_a=(byte)(temp_char[0]>>8);temp_b=(byte)(temp_char[0]&0xff);}
	if(s2.Length>0){temp_c=(byte)(temp_char_1[0]>>8);temp_d=(byte)(temp_char_1[0]&0xff);}
	//ϴַĳȽַǰ1ǰ2ֲַĸֽ
	int result ; //ֲ,ؽ
	//@fļе@pλдмʽ

	   result = CalculateEx_2(OutArray, ref temp_a,ref temp_b, ref temp_c, ref temp_d,KeyPath, 16, 2000);
	@1
	if (result != 0 )
	{
		LastError = result;
		return 0; //ô
	}
	//ڼĽصtemp_a,temp_b,temp_c,temp_d
		if(s1.Length>0){temp_char[0]=(char)(temp_a<<8);temp_char[0]=(char)(temp_char[0]|(char)temp_b);}
	if(s2.Length>1){temp_char_1[0]=(char)(temp_c<<8);temp_char_1[0]=(char)(temp_char_1[0]|(char)temp_d);}

	if (s1.Length>0)
	{
		{
			s1=new string(temp_char);

		}
	}
	if (s2.Length>0)
	{
		{
			s2=new string(temp_char_1);

		}
	}
	return s1.CompareTo(s2);
}